﻿package mortal.game.scene3D.player.entity
{
    import __AS3__.vec.*;
    import baseEngine.core.*;
    import flash.geom.*;
    import frEngine.pools.*;
    import mortal.game.scene3D.layer3D.utils.*;
    import mortal.game.scene3D.map3D.*;

    public class Game2DPlayer extends Pivot3D implements IGame2D
    {
        protected var _y2d:Number = 0;
        protected var _x2d:Number = 0;
        protected var _overPriority:int = 0;
        protected var _displayRec:Rectangle;
        protected var hoverLeft:Number = 50;
        protected var hoverTop:Number = 140;
        protected var hoverWidth:Number = 100;
        protected var hoverHeight:Number = 160;

        public function Game2DPlayer()
        {
            this._displayRec = new Rectangle();
            super("");
            return;
        }// end function

        public function set x2d(param1:Number) : void
        {
            this._x2d = param1;
            this.x = Scene3DUtil.change2Dto3DX(int(param1));
            return;
        }// end function

        public function play(param1:int = 0) : void
        {
            return;
        }// end function

        override public function set alpha(param1:Number) : void
        {
            var _loc_3:Pivot3D = null;
            var _loc_2:* = this.children;
            for each (_loc_3 in _loc_2)
            {
                
                _loc_3.alpha = param1;
            }
            return;
        }// end function

        public function get x2d() : Number
        {
            return this._x2d;
        }// end function

        public function set y2d(param1:Number) : void
        {
            this._y2d = param1;
            this.z = Scene3DUtil.change2Dto3DY(int(param1));
            return;
        }// end function

        public function get y2d() : Number
        {
            return this._y2d;
        }// end function

        public function get stagePointX() : Number
        {
            return this.x2d - SceneRange.display.x;
        }// end function

        public function get stagePointY() : Number
        {
            return this.y2d - SceneRange.display.y;
        }// end function

        public function hoverTest(param1:Number, param2:Number, param3:Number, param4:Number) : Boolean
        {
            return false;
        }// end function

        public function onMouseOver() : void
        {
            return;
        }// end function

        public function onMouseOut() : void
        {
            return;
        }// end function

        public function set direction(param1:Number) : void
        {
            return;
        }// end function

        public function get direction() : Number
        {
            return 0;
        }// end function

        protected function disposeObject() : void
        {
            FrObjectPool.disposeObject(this);
            return;
        }// end function

        override public function dispose(param1:Boolean = true) : void
        {
            this.hoverLeft = 50;
            this.hoverTop = 140;
            this.hoverWidth = 100;
            this.hoverHeight = 160;
            this._y2d = 0;
            this._x2d = 0;
            super.dispose(param1);
            return;
        }// end function

        public function get overPriority() : int
        {
            return this._overPriority;
        }// end function

        public function set overPriority(param1:int) : void
        {
            this._overPriority = param1;
            return;
        }// end function

    }
}
